package com.example.springboot_ssm.service.impl;

import com.example.springboot_ssm.dao.MemberMapper;
import com.example.springboot_ssm.pojo.Member;
import com.example.springboot_ssm.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MemberServiceImpl  implements MemberService {

    /* 此处报错可以忽略 */
    @Autowired
    private MemberMapper memberMapper;
    @Override
    public Member getUserById(Integer id) {
        System.out.println(" welcome in service......");
        Member member = memberMapper.getUserById(id);
        System.out.println("good byb service......");

        return member;
    }
}
